
<?php
$username=$_POST['username'];
$password=$_POST['pwd'];


if (empty($_POST['username'])){
    echo '用户名为空';
    die;
}
if (empty($_POST['pwd'])){
   echo '密码为空';
   die;
}

print_r($_POST);
echo'<br>';
if ($_POST['username']=='admin'&&$_POST['pwd']=='888888'){
    echo '登录成功';
    echo '<br/>';
    echo '<a href="User.php">跳转<a/>';
}else{
    echo '用户名密码错误';

}
setcookie('Token','1101',time()+24*3600);

